<h1>Editing mentor</h1>

<%= error_messages_for :mentor %>

<% form_for(@mentor) do |f| %>
  <p>
    <b>First name</b><br />
    <%= f.text_field :first_name %>
  </p>

  <p>
    <b>Last name</b><br />
    <%= f.text_field :last_name %>
  </p>

  <p>
    <b>Authorized</b><br />
    <%= f.check_box :authorized %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @mentor %> |
<%= link_to 'Back', mentors_path %>
